package com.xiaoke.mapper;

import com.github.pagehelper.Page;
import com.xiaoke.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(String id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Map<String, Object> findOrderDetailById(String orderId);

    Page<Map<String, Object>> findByUser(String userId);

    List<Order> findByParams(HashMap<String, String> params);
}